const ordermodle = require('../../modle/order')
const productmodle = require('../../modle/products')
module.exports = {
    async getorderservice(data) {
        return await ordermodle.findAll({
            where: {
                ...data
            }
        })
    },
    async productservice(data) {
        return await productmodle.findAll({
            where: {
                ...data
            }
        })
    },
    async setstatus(id, data) {
        return await ordermodle.update(data, {
            where: {
                ...id
            }
        })
    }
}